<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript" src="../../angular.min.js"></script>
</head>
<body ng-app="myApp">
<div ng-controller="myAppcontrlOne">{{username}}</div>
<div ng-controller="myAppcontrlTwo">{{username}}</div>
</body>
<script type="text/javascript">
angular.module('moduleOne',[]).controller('myAppcontrlOne',['$scope',function($scope){
	$scope.username = "李四";
}]);
angular.module('moduleTwo',[]).controller('myAppcontrlTwo',['$scope',function($scope){
	console.log($scope);
	$scope.username = "张三";
}]);
//angular.module('myApp',['moduleOne','moduleTwo']);
</script>
<script type="text/javascript" src="./require-angular.js"></script>

</html>